package com.demo.interfaceautotest;


import org.springframework.test.context.event.annotation.AfterTestMethod;
import org.springframework.test.context.event.annotation.BeforeTestMethod;
import org.testng.annotations.AfterClass;
import org.testng.annotations.AfterMethod;
import org.testng.annotations.AfterSuite;
import org.testng.annotations.AfterTest;
import org.testng.annotations.BeforeClass;
import org.testng.annotations.BeforeMethod;
import org.testng.annotations.BeforeSuite;
import org.testng.annotations.BeforeTest;
import org.testng.annotations.Test;

public class AfterBeforeDemo1 {

    @BeforeSuite
    public void f1(){
        System.out.println("@BeforeSuite---");
    }
    @AfterSuite
    public void f2(){
        System.out.println("@@AfterSuite---");
    }
    @BeforeTest
    public void f3(){
        System.out.println("@BeforeTest---");
    }
    @AfterTest
    public void f4(){
        System.out.println("@AfterTest---");
    }

    @BeforeClass
    public void f5(){
        System.out.println("@BeforeClass---");
    }
    @AfterClass
    public void f6(){
        System.out.println("@AfterClass---");
    }

    @BeforeMethod
    public void f7(){
        System.out.println("@BeforeMethod---");
    }
    @AfterMethod
    public void f8(){
        System.out.println("@AfterMethod---");
    }
    @Test
    public void test1(){
        System.out.println("@ @Test---test1---");
    }
    @BeforeTestMethod(value ="test1" )
    public void test2(){
        System.out.println("@BeforeTestMethod---test2---");
    }
    @AfterTestMethod(value ="test1" )
    public void test3(){
        System.out.println("@AfterTestMethod---test3---");
    }
}
